package com.dongdongshop.service;

import com.dongdongshop.pojo.TbAddress;
import com.dongdongshop.pojo.TbAreas;
import com.dongdongshop.pojo.TbCities;
import com.dongdongshop.pojo.TbProvinces;

import java.util.List;

public interface AddressService {
    List<TbAddress> getAddressListByUser(String username);

    String getProvinceById(String provinceId);

    String getCityById(String cityId);

    String getAreaById(String townId);

    List<TbProvinces> getProvincesList();

    List<TbCities> listCityByProvinceId(String provinceId);

    List<TbAreas> listAreaByCityId(String cityId);

    int insertAddress(TbAddress tbAddress);

    int updateDefaultAddress(String username, Long id);

    TbAddress getAddressById(Long id);

    int updateAddress(TbAddress tbAddress);

    int deleteAddress(Long id);
}
